import { BrowserRouter as Router, Route, Switch,Redirect } from "react-router-dom";

import Home from "../Pages/Home";
import About from "../Pages/About";
import FAQs from "../Pages/FAQs";
import NFTs from "../Pages/NFTs";
import Test from "../Pages/Test"

function Routers() {
  return (
    <Router>
      <Switch>
        <Route path="/home" component={Home} />
        <Route path="/about" component={About} />
        <Route path="/faqs" component={FAQs} />
        <Route path="/nfts" component={NFTs} />
        <Route path="/t" component={Test}></Route>
        <Redirect from="/" to="/home" />
      </Switch>
    </Router>
  );
}

export default Routers;
